/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.section .qu {
  padding: 0;
}

/* 导航栏样式 */
.navbar.transparent {
  background-color: transparent;
  border-bottom: none;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #2c3e50;
  color: white;
  padding: 15px 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: #1a252f;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: #3498db;
}

/* 页面部分样式 */
.section {
  min-height: 85vh;
  display: flex;
  align-items: top;
  justify-content: center;
  text-align: center;
}

.home-section {
  background-color: #fff;
  color: white;
}

.about-section {
  background-color: #fff;
}

.services-section {
  background-color: #fff;
  color: black;
}

.portfolio-section {
  text-align: left;
}

.contact-section {
  /* background-color: #2ecc71; */
}

/* 服务网格 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 80px;
  margin-top: 100px;
}

.service-card {
  background: rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-top: 50px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

/* 作品集网格 */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.portfolio-item {
  height: 200px;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

/* 联系表单 */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 150px;
}

.contact-form button {
  padding: 15px;
  background: #dedede;
  color: #2ecc71;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #f1f1f1;
}

/* 返回顶部按钮 */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #2c3e50;
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #1a252f;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar .container {
    flex-direction: column;
  }

  .nav-links {
    margin-top: 20px;
  }

  .nav-links li {
    margin: 0 10px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}
